package 原型模式.demo.复制简历;

/**
 * @author zyl
 * @Description
 * @since 2024/1/3 16:21
 */

public class WorkExperience implements Cloneable{
    private String timeArea;
    private String company;

    public WorkExperience(String timeArea, String company) {
        this.timeArea = timeArea;
        this.company = company;
    }

    public void setTimeArea(String timeArea) {
        this.timeArea = timeArea;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getTimeArea() {
        return timeArea;
    }

    public String getCompany() {
        return company;
    }
    public Object clone(){
        Object object = null;
        try {
            object = super.clone();
        }catch (CloneNotSupportedException e){
            System.out.println("克隆异常," + e.toString());
        }
        return object;
    }
}
